/*
* Author: Martin Klein for CSR inc Swarm Robotics
* Description: Contains the ColorTheshold structure which contains the values 
*	for doing color thresholds.
*
*
*/


#ifndef COLORTHRESHOLD_H
#define COLORTHRESHOLD_H
#ifdef __cplusplus
// This allows the code to be compiled as C code which is faster than C++ but
// it can still work within a C++ file
extern "C" {

#endif

typedef struct ColorThreshold_{
	// Thresh = mean value of single pixel color (red, green, blue)
	// SDev   = standard deviation of single pixel color (red, green, blue)
	int redThresh;
	int redSDev;
	
	int greenThresh;
	int  greenSDev;

	int  blueThresh;
	int  blueSDev;
	
	// Label allows the programmer to give unique labels to each theshold 
	// to keep track of objects
	char label[255];

} ColorThreshold;

#ifdef __cplusplus
}
#endif

#endif //COLORTHRESHOLD_H
